package com.heima.common.aliyun.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class AuditResultDTO {

    private String suggestion;

    private String reason;

    public boolean isAuditPass(){
        return Objects.equals("pass", this.suggestion);
    }

    public boolean isAuditFail(){
        return Objects.equals("block", this.suggestion);
    }

    public boolean isAuditReview(){
        return Objects.equals("review", this.suggestion);
    }


}
